/**
 * @file    Expression classname is undefined on line 2, column 15 in Templates/Classes/Class.java.
 * @author  Haseeb Yousaf
 * @see     LICENSE (MIT style license file)
 * @version 1.0
 * @date    Nov 22, 2011 3:37:17 PM
 */
package carrello.model.entities;

public class EntityFactory {
    
    public static Category createCategory(Category parent, String name, String description)
    {
        return new Category(parent, name, description);
    }
    
    public static Category createCategory(String name, String description)
    {
        return new Category(name, description);
    }
    
    public static Product createProduct(int productId, String name, String description, String price, int quantity, int catalogId, String manufacture)
    {
        return new Product(productId, name, description, price, quantity, catalogId, manufacture);
    }
    
    public static Company createCompany(String name, String slogan, String url, String email, String phone, String address)
    {
        return new Company(name, slogan, url, email, phone, address);
    }
    
    public static Attribute createAttribute(String name, String type, char required)
    {
        return new Attribute(name, type, required);
    }
    
    public static User createUser( String username, String firstName, String lastName, String passwordHash, String email, String address, String role)
    {
        return new User(username, firstName, lastName, passwordHash, email, address, role);
    }
    
    public static PaymentProcessor createPaymentProcessor(String name, String url, String api)
    {
        return new PaymentProcessor(name, url, api);
    }
}
